package com.winit.test;

import com.winit.mycat.MycatConnUtil;

import java.sql.Connection;

import static com.winit.base.BaseUpdate.updateT;

/**
 * Created by wangjian on 17/7/5.
 */
public class Update {

    public static void main(String... args) throws Exception {
        Connection connection = null;

        String sql = "update a set column_3 = '2017-01-01' where column_4='打发的====2====aaaaaa'";


//       mycat
        connection = MycatConnUtil.getMycatConn();

        if (connection != null) {
            updateT(connection, sql);

            connection.close();
        }
    }
}
